package com.ruoyi.xiaoshou.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 客户报表对象 finer_customer_report
 * 
 * @author wl
 * @date 2024-11-12
 */
public class CustomerReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 年份 */
    @Excel(name = "年份")
    private String year;

    /** 月份 */
    @Excel(name = "月份")
    private String month;

    /** 客户 */
    @Excel(name = "客户")
    private String cusName;

    /** 销售订单数量 */
    @Excel(name = "销售订单数量")
    private Integer saleOrderCount;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private BigDecimal saleAmount;

    /** 出库金额 */
    @Excel(name = "出库金额")
    private BigDecimal outboundAmount;

    /** 已结算金额 */
    @Excel(name = "已结算金额")
    private BigDecimal settledAmount;

    /** 未结算金额 */
    @Excel(name = "未结算金额")
    private BigDecimal unsettledAmount;

    /** 毛利润 */
    @Excel(name = "毛利润")
    private BigDecimal grossProfit;

    /** 毛利率 */
    @Excel(name = "毛利率")
    private Double grossMargin;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }
    public void setMonth(String month) 
    {
        this.month = month;
    }

    public String getMonth() 
    {
        return month;
    }
    public void setCusName(String cusName) 
    {
        this.cusName = cusName;
    }

    public String getCusName() 
    {
        return cusName;
    }
    public void setSaleOrderCount(Integer saleOrderCount) 
    {
        this.saleOrderCount = saleOrderCount;
    }

    public Integer getSaleOrderCount() 
    {
        return saleOrderCount;
    }
    public void setSaleAmount(BigDecimal saleAmount) 
    {
        this.saleAmount = saleAmount;
    }

    public BigDecimal getSaleAmount() 
    {
        return saleAmount;
    }
    public void setOutboundAmount(BigDecimal outboundAmount) 
    {
        this.outboundAmount = outboundAmount;
    }

    public BigDecimal getOutboundAmount() 
    {
        return outboundAmount;
    }
    public void setSettledAmount(BigDecimal settledAmount) 
    {
        this.settledAmount = settledAmount;
    }

    public BigDecimal getSettledAmount() 
    {
        return settledAmount;
    }
    public void setUnsettledAmount(BigDecimal unsettledAmount) 
    {
        this.unsettledAmount = unsettledAmount;
    }

    public BigDecimal getUnsettledAmount() 
    {
        return unsettledAmount;
    }
    public void setGrossProfit(BigDecimal grossProfit) 
    {
        this.grossProfit = grossProfit;
    }

    public BigDecimal getGrossProfit() 
    {
        return grossProfit;
    }
    public void setGrossMargin(Double grossMargin) 
    {
        this.grossMargin = grossMargin;
    }

    public Double getGrossMargin() 
    {
        return grossMargin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("year", getYear())
            .append("month", getMonth())
            .append("cusName", getCusName())
            .append("saleOrderCount", getSaleOrderCount())
            .append("saleAmount", getSaleAmount())
            .append("outboundAmount", getOutboundAmount())
            .append("settledAmount", getSettledAmount())
            .append("unsettledAmount", getUnsettledAmount())
            .append("grossProfit", getGrossProfit())
            .append("grossMargin", getGrossMargin())
            .toString();
    }
}
